package com.bakend.modules.sys.service;

import com.bakend.modules.sys.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.core.userdetails.UserDetails;

/**
 * (User)表服务接口
 *
 * @author makejava
 * @since 2021-05-02 03:28:58
 */
public interface UserService extends IService<User> {
    User getUserByUserCode(String usercode);

    String login(String usercode, String pwd);

    void register(String usercode, String password, String username) throws Exception;

    UserDetails loadUserByUserCode(String usercode);
}